package com.jet.auth.controller;

import com.jet.core.result.ResultJson;
import org.springframework.web.bind.annotation.*;

/**
 * @author dcl
 * @since 2023/9/28 16:15
 */
@RestController
@RequestMapping("/oauth/logout")
public class LogoutController {

    /**
     * 退出登录
     *
     * @param token
     * @return
     */
    @PostMapping(value = "/{token}")
    public ResultJson<Void> logout(@PathVariable(value = "token", required = false) String token) {
        return ResultJson.ok();
    }
}
